﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace UtilsORM.MySqlData;

[MySqlCharSet("utf8mb3")]
[MySqlCollation("utf8mb3_general_ci")]
public partial class iot_product_model
{
    [Key]
    public long pm_id { get; set; }

    /// <summary>
    /// 编码
    /// </summary>
    [StringLength(50)]
    public string pm_code { get; set; }

    /// <summary>
    /// 0正常，1禁用
    /// </summary>
    public int? pm_status { get; set; }

    [StringLength(50)]
    public string pm_guid { get; set; }

    /// <summary>
    /// 型号名称
    /// </summary>
    [StringLength(100)]
    public string pm_name { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime? pm_add_time { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    [StringLength(255)]
    public string pm_remark { get; set; }

    /// <summary>
    /// 客户
    /// </summary>
    [StringLength(50)]
    public string pm_c_guid { get; set; }

    /// <summary>
    /// 记录生成型号模板的样版产品ID
    /// </summary>
    [StringLength(50)]
    public string pm_p_guid { get; set; }
}
